import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';

class SelfText extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('Flutter Demo')),
      body: Text(
        '为中国之崛起而读书 为中国之崛起而读书 为中国之崛起而读书I from china,wo ai beijing tian an men',
        textAlign: TextAlign.center,
        // maxLines: 1,
        // overflow: TextOverflow.ellipsis,
        style: TextStyle(
            fontSize: 20,
            // color: Color.fromARGB(255, 0, 0, 0),
            // color: Color(int.parse('#000000'.substring(1, 7), radix: 16) + 0xFF000000),
            color: Color( int.parse( '#FF0000'.substring(1,7), radix: 16) + 0xFF000000 ),
            wordSpacing: 20.0,
            // letterSpacing: 3.0,
            backgroundColor: Colors.yellow,
            decoration: TextDecoration.underline,
            decorationStyle: TextDecorationStyle.dotted),
      ),
    );
  }
}
